package org.ksystem.practise.url;

import java.io.IOException;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;

public class JSoupTest {

    private String HTTP_URL = "http://localhost/";

    public static void main(String[] args) throws IOException {
        Document document = Jsoup.connect("http://localhost/").timeout(0).get();
        Elements items = document.select("a");
        for (Element element : items) {
            System.out.println(element.attr("href"));
        }

    }
}
